package com.cykj.shop.mapper;


import com.cykj.shop.domain.vo.ShopVo;
import com.cykj.system.api.domain.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShopMapper {
    //商家店铺信息展示
    Shop showInfo(@Param("businessId") Integer businessId);
    //店铺营业状态切换
    Integer updateStatus(@Param("shopVo") ShopVo shopVo);
    //修改店铺信息
    Integer updateInfo(@Param("shopVo") ShopVo shopVo);
    //修改店铺头像
    Integer updateAvatar(@Param("id") Integer id, @Param("shopAvatarUrl") String shopAvatarUrl);

    List<Shop> getListShop(ShopVo shopVo);
}
